package com.ldu.dao.dataobject;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

public class CatelogDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * This field corresponds to the database column catelog.id
     */
    private Long id;

    /**
     * This field corresponds to the database column catelog.name
     */
    private String name;

    /**
     * This field corresponds to the database column catelog.number
     */
    private Integer number;

    /**
     * This field corresponds to the database column catelog.status
     */
    private Integer status;

    /**
     * This field corresponds to the database column catelog.is_deleted
     */
    private Integer isDeleted;

    /**
     * This field corresponds to the database column catelog.gmt_create
     */
    private Date gmtCreate;

    /**
     * This field corresponds to the database column catelog.gmt_modified
     */
    private Date gmtModified;

	public Long getId() {
	                return id;
	    
	}

	public void setId(Long id) {
                    this.id = id;
	    
	}

	public String getName() {
	                return name;
	    
	}

	public void setName(String name) {
                    this.name = name;
	    
	}

	public Integer getNumber() {
	                return number;
	    
	}

	public void setNumber(Integer number) {
                    this.number = number;
	    
	}

	public Integer getStatus() {
	                return status;
	    
	}

	public void setStatus(Integer status) {
                    this.status = status;
	    
	}

	public Integer getIsDeleted() {
	                return isDeleted;
	    
	}

	public void setIsDeleted(Integer isDeleted) {
                    this.isDeleted = isDeleted;
	    
	}

	public Date getGmtCreate() {
	                 return gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public void setGmtCreate(Date gmtCreate) {
                     this.gmtCreate = gmtCreate == null ? null : new Date(gmtCreate.getTime());
        
	}

	public Date getGmtModified() {
	                 return gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}

	public void setGmtModified(Date gmtModified) {
                     this.gmtModified = gmtModified == null ? null : new Date(gmtModified.getTime());
        
	}


	public static interface IField {
		
		public static final String f_id = "id";
		
		public static final String f_name = "name";
		
		public static final String f_number = "number";
		
		public static final String f_status = "status";
		
		public static final String f_is_deleted = "isDeleted";
		
		public static final String f_gmt_create = "gmtCreate";
		
		public static final String f_gmt_modified = "gmtModified";
		
	}

    @Override
    public String toString(){
        return ReflectionToStringBuilder.toString(this, ToStringStyle.DEFAULT_STYLE);
    }
}